package com.zhengke.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhengke.dao.IHelpCenterDao;
import com.zhengke.pojo.HelpCenter;
import com.zhengke.service.IHelpCenterService;


@Service
public class IHelpCenterServiceImpl implements IHelpCenterService {
	
	
	@Autowired
	IHelpCenterDao ihelpCenterDao;

	@Override
	public List<HelpCenter> querryHelpCenterTreeMethod(String help_parent_id) {
		
		return ihelpCenterDao.querryHelpCenterTreeMethod(help_parent_id);
	}

	@Override
	public int addFatherPointMethod(HelpCenter helpCenter) {
		
		return ihelpCenterDao.addFatherPointMethod(helpCenter);
	}

	@Override
	public HelpCenter querryHelpCenterByIdAndName(Map<String, Object> messgaeMap) {
		
		return ihelpCenterDao.querryHelpCenterByIdAndName(messgaeMap);
	}

	@Override
	public int updateNodePointMessageMethod(Map<String, Object> messageMap) {
		
		return ihelpCenterDao.updateNodePointMessageMethod(messageMap);
	}

	@Override
	public int delteNodePointMessageMethod(String id) {
		
		return ihelpCenterDao.delteNodePointMessageMethod(id);
	}

}
